//
//  EPButton.h
//  EPTool
//
//  Created by guoshiqing on 2018/4/13.
//  Copyright © 2018年 云数动能科技. All rights reserved.
//

#import <UIKit/UIKit.h>


typedef NS_ENUM(NSUInteger, EPBasicButtonStyle) {
    EPBasicButton_btn1     = 1,    // 白色背景0.3-蓝色背景1.0，白色文字0.3-白色文字1.0
    EPBasicButton_btn2     = 2,    // 蓝色背景0.3-蓝色背景1.0，白色文字0.3-白色文字1.0
    EPBasicButton_btn3     = 3,    // 选定时 灰色背景圆角-黑色文字，反选时 白色背景无框-灰色文字
};

@interface EPButton : UIButton

@property (nonatomic, assign) EPBasicButtonStyle epStyle;

- (void)setBorderColor:(UIColor*)borderColor forState:(UIControlState)state;
- (void)setBackgroundColor:(UIColor *)backgroundColor forState:(UIControlState)state;


- (void)buttonWithStyle:(EPBasicButtonStyle)style;    //使用约束时用的
+ (EPButton*)buttonWithStyle:(EPBasicButtonStyle)style;    //使用约束时用的

+ (EPButton*)buttonWithFrame:(CGRect)rect style:(EPBasicButtonStyle)style;
+ (EPButton*)buttonWithFrame:(CGRect)rect style:(EPBasicButtonStyle)style target:(id)target selector:(SEL)selector;

@end

